import requests
def face_search(image_path,outer_id):
    """该函数为调用Face++ face_search人脸搜索接口"""
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/search'
    files = {'image_file': (image_path, open(image_path, 'rb'), 'multipart/form-data')}
    payload = {
            'api_key':"Vf1TVr0kb7C0wavMhpaKym9OSkwGRNaw",
            'api_secret':"POyLi052sYdsVnEe-Gs27AxP9fqd7zHJ",
            'outer_id':outer_id
            }
    

    r = requests.post(base_url, params = payload,files = files )
    return r.json()
